package com.imagecollector.service.impl;

import com.imagecollector.domain.entity.TaskReceiverRecord;
import com.imagecollector.mapper.TaskReceiverRecordMapper;
import com.imagecollector.service.ITaskReceiverRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 任务接受记录表 服务实现类
 * </p>
 *
 * @author wrf
 * @since 2024-07-31
 */
@Service
public class TaskReceiverRecordServiceImpl extends ServiceImpl<TaskReceiverRecordMapper, TaskReceiverRecord> implements ITaskReceiverRecordService {

    @Override
    public TaskReceiverRecord getByTaskId(Integer taskId) {
        return lambdaQuery().eq(TaskReceiverRecord::getTaskId, taskId).one();
    }
}
